#include "Tile.h"


void Tile::init(Def def)
{
    solid = (bool)def.GetVal("solid");
    spr.SetImage(*gImageManager.getResource(def.GetString("image")));
    spr.SetX((int)def.GetVal("x") * 64);
    spr.SetY((int)def.GetVal("y") * 64);
}

Tile::Tile()
{
    BaseOBJ* obj = new BaseOBJ;/*
    Def d;
    sf::Image i;
    i.LoadFromFile("none.png");
    obj->init(d, i);*/
    top = obj;
}
